# Winstreaks controller controls Player Betting History
# In 13wins, the user may view their previous betting history

class WinstreaksController < ApplicationController
  # List user bet history 
  def history
    @winstreaks = current_user.winstreaks.paginate :order=>"#{Winstreak.table_name}.id desc",
      :include=>[:bets],
      :page=>params[:page],
      :per_page=>3
  end
  def show
    @winstreak = Winstreak.find params[:id]
  end
end
